package cash.cmp.personal_financial_system.model;

import java.util.List;

public class Page<T> {


    private List<T> data;
    // 总共多少条
    private int total;
    // 一页展示条数, 默认为10
    private int pageSize = 10;
    // 页面
    private int page;



    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "Page{" +
                "data=" + data +
                ", total=" + total +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

}
